//
//  BaseViewController.h
//  fp
//
//  Created by xingshuai on 2020/11/10.
//

#import <UIKit/UIKit.h>

// 导航样式枚举(默认显示个人中心导航样式)
typedef NS_ENUM(NSInteger , XSCurrentNavViewType) {
    XSCurrentNavViewTypeHome       = 1,  // 首页模块导航样式
    XSCurrentNavViewTypeUser       = 2,  // 个人中心导航样式
    XSCurrentNavViewTypeLesson     = 3,  // 校师佳课导航
};

NS_ASSUME_NONNULL_BEGIN

// 搜索代理
@protocol HomeSearchTextDelegate <NSObject>

@optional
/// 确认搜索（return）
/// @param searchString 搜索的内容
- (void)searchTextEndEdit:(NSString *)searchString;

@end

@interface BaseViewController : UIViewController <UITextFieldDelegate>

// 导航样式枚举属性
@property (nonatomic) XSCurrentNavViewType currentnavType;
// 代理属性
@property (nonatomic,weak) id <HomeSearchTextDelegate> delegate;


/////////////   自定义个人中心导航   /////////

@property (nonatomic, strong) UIView *navView;
// 是否隐藏自定义导航
@property (nonatomic, assign) BOOL isHiddenNav;
// 自定义导航标题UI
@property (nonatomic, strong) UILabel *navLabel;
// 自定义导航返回按钮
@property (nonatomic, strong) UIButton *backBtn;
// 自定义导航返回按钮图片
@property (nonatomic, strong) NSString *userBackImg;
// 是否隐藏个人中心导航返回按钮
@property (nonatomic, assign) BOOL isHiddenUserBackBtn;
// 自定义导航标题文字
@property (nonatomic, strong) NSString *navString;
// 自定义文字颜色
@property (nonatomic, strong) UIColor *navTitleColor;
// 自定义导航背景色
@property (nonatomic, strong) UIColor *navColor;
// 自定义导航底部分割线
@property (nonatomic, strong) UIView *lineView;




//////////     自定义首页导航    ///////////

@property (nonatomic, strong) UIView *homeNavView;
// 是否隐藏自定义导航
@property (nonatomic, assign) BOOL isHiddenHomeNav;
// 导航左侧头像
@property (nonatomic, strong) UIImageView *headImg;
// 点击头像响应
@property (nonatomic, strong) UIButton *headBtn;
// 导航左侧昵称
@property (nonatomic, strong) UILabel *nameLabel;
// 导航年级背景图片
@property (nonatomic, strong) UIButton *gradeBackImg;
// 导航年级标志图片
@property (nonatomic, strong) UIImageView *gradeSignImg;
// 年级
@property (nonatomic, strong) UILabel *gradeLabel;
// 自定义导航背景色
@property (nonatomic, strong) UIColor *HomeNavColor;
// 导航搜索框背景
@property (nonatomic, strong) UIImageView *searchBackImg;
// 导航搜索框
@property (nonatomic, strong) UITextField *searchField;
// 导航搜索不在编辑状态显示
@property (nonatomic, strong) UIButton *searDefBtn;

// 导航右侧随机学校名字
@property (nonatomic, strong) UILabel *randomSchoolName;
// 是否隐藏导航右侧随机学校名字（默认显示）
@property (nonatomic, assign) BOOL isHidenrandomSchoolName;

// 页面背景
@property (nonatomic, strong) UIImageView *viewBackImg;
// 自定义校师佳课模块导航返回按钮
@property (nonatomic, strong) UIButton *homeBackBtn;
// 是否隐藏首页模块导航返回按钮
@property (nonatomic, assign) BOOL isHiddenHomeBackBtn;
// 导航左标题
@property (nonatomic, strong) UILabel *lessonLabel;
// 导航左侧标题文字
@property (nonatomic, strong) NSString *lessonString;




@end

NS_ASSUME_NONNULL_END
